package cn.usbtg.jfinal.plugin.autoroute.annotation;

import cn.usbtg.jfinal.plugin.autoroute.HttpRequestMethod;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 路由
 */
@Deprecated
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface ManuallyRoute {
    //http协议类型
    HttpRequestMethod[] method() default {
            HttpRequestMethod.GET,
            HttpRequestMethod.POST
    };

    //访问url，支持正则
    String url() default "";

    //是否启用缓存
    boolean cache() default true;
}